<template>
  <div class="mapbox">
    <HeadTop title="健走地图" />
    <!--地图容器-->
    <baidu-map
      class="map"
      style="display: flex; flex-direction: column"
      :zoom="17"
      :scroll-wheel-zoom="true"
      center="衡水"
    >
      <!-- <bm-navigation anchor="BMAP_ANCHOR_TOP_RIGHT"></bm-navigation> -->
      <bm-map-type :map-types="['BMAP_PERSPECTIVE_MAP']" anchor="BMAP_ANCHOR_TOP_LEFT"></bm-map-type>
      <bm-view style="width: 100%; height:100%; flex: 1"></bm-view>
    </baidu-map>
    <div class="mapbottom">
      <div class="speed">
        <p class="speedNum">05'30"</p>
        <p class="speedUnit">分钟/公里</p>
      </div>
      <div class="time">
        <p class="timeNum">00:11:40</p>
        <p class="timeUnit">用时</p>
      </div>
      <div class="energy">
        <p class="energyNum">144</p>
        <p class="energyUnit">千卡</p>
      </div>
      <div>
        <div class="yellow">
          <span class="yellowNum">2.01</span>
          <span class="yellowUnit">公里</span>
          <span class="date">12月13日</span>
          <span class="hour">18:44</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import HeadTop from "../../../components/Nav/HeadTop";

export default {
  components: {
    HeadTop
  }
};
</script>

<style lang="less" scoped>
.mapbox {
  width: 100%;
  height: 100%;
  .map {
    width: 100%;
    height: 72%;
  }
  .mapbottom {
    position: relative;
    height: 1.6rem;
    width: 100%;
    background: #333;
    color: rgb(254, 217, 6);
    padding-top: 1.1rem;
    text-align: center;
    display: flex;
    .speed {
      float: left;
      flex: 1;
      .speedNum {
        font-size: 0.5rem;
        line-height: 0.9rem;
      }
      .speedUnit {
        font-size: 0.28rem;
        line-height: 0.3rem;
      }
    }
    .time {
      float: left;
      flex: 1;
      .timeNum {
        font-size: 0.5rem;
        line-height: 0.9rem;
      }
      .timeUnit {
        font-size: 0.28rem;
        line-height: 0.3rem;
      }
    }
    .energy {
      float: left;
      flex: 1;
      .energyNum {
        font-size: 0.5rem;
        line-height: 0.9rem;
      }
      .energyUnit {
        font-size: 0.28rem;
        line-height: 0.3rem;
      }
    }
  }
  .yellow {
    width: 5.5rem;
    height: 1.5rem;
    background: rgb(254, 217, 6);
    position: absolute;
    bottom: 2rem;
    left: 0.3rem;
    line-height: 1.5rem;
    color: #333;
    font-weight: 550;
    .yellowNum {
      font-size: 1rem;
    }
    .yellowUnit {
      font-size: 0.3rem;
    }
    .date {
      font-size: 0.3rem;
      margin-left: 0.25rem;
    }
    .hour {
      font-size: 0.25rem;
      margin-left: 0.1rem;
    }
  }
}
</style>